#pragma once
#include <vector>

extern short POKER[54];

class poker
{
public:
	poker(short _c);
	~poker();
	short getPokerColor();
	short getPokerValue();
	short getPoker();
	bool operator<(poker &c2);
	bool is(short poker);
private:
	short card;
};

enum POKER_TYPE{
	NONE,
	ONE_POKER,
	TWO_PAIR,
	THREE_STRIP,
	FOUR_BOM,
	SMALL_BIG,
};

class pokerVec
{
public:
	pokerVec();
	//pokerVec(vector< poker > &vec);
	pokerVec(short *cards, unsigned int size);;
	~pokerVec();
	int pokersSort();
	bool isInPokers(pokerVec &p);
	bool isBiggerThan(pokerVec &p);
	void push_back(const poker &_p);
	void push_back(short _p);
	POKER_TYPE getpokersType();
	int getPokerNum();
	unsigned int size();
	int clear();
	bool empty();

	bool operator-(pokerVec &p);
	poker operator[](unsigned int index);

private:
	std::vector<poker> pokers;
};


void shufflePoker(pokerVec &v1, pokerVec &v2, pokerVec &v3, pokerVec &bottom);
